﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Pandemia.Funcionalidad;

namespace PandemiaServer
{
    public partial class FrmNodos : Form
    {
        PandemServidor _server;

        public FrmNodos()
        {
            InitializeComponent();
            _server = PandemServidor.ObtenerInstancia();
        }

        private void tmrActualizarNodos_Tick(object sender, EventArgs e)
        {
            bsNodos.DataSource = _server.ObtenerNodos().OrderByDescending(n => n.Ping).ToList();
        }
    }
}
